
<?php
	$qty=$_REQUEST['qty'];
	include "connection_open.php";
	$query=@mysql_query("select count(*) as count from product where id_shop=$qty and (price_result=1 or price=price_new) AND `status`=1 and quantity=1");
	if (!$query) 
	{
		die('Invalid query: ' . mysql_error());
	}
	while($row=mysql_fetch_array($query))
	{	
		echo "(".$row['count'].")";
	}
	include "connection_close.php";
?>	